package com.sdkj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdkj.pojo.Member;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MemberMapper extends BaseMapper<Member> {
    @Select("SELECT COUNT(*) FROM member")
    Integer getMemberCount();
    @Select("SELECT COUNT(*) FROM member WHERE regtime BETWEEN  #{begin} AND  #{end}")
    Integer getMemberCountOfWeek(@Param("begin")String firstDayOfWeekStr, @Param("end")String todayStr);
}
